package com.atguigu.springboot.repository;

import com.atguigu.springboot.entity.Article;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @author : wenchao.long
 * @date : Created in 2020/12/02 15:09 周三
 * @description :
 */
public interface ArticleRepository extends ElasticsearchRepository<Article, Integer> {
    /**
     * 通过title模糊搜索
     *
     * @param title title
     * @return Article List
     */
    List<Article> findArticlesByTitleLike(String title);

}
